package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum SelfTypeEnum {
    EVERY_DAY_LOGIN(0, "每日每次登录"),
    ;


    @EnumValue
    private int code;
    private String desc;

    public static SelfTypeEnum getCode(Integer code) {
        for (SelfTypeEnum value : values()) {
            if (value.getCode() == code) {
                return value;
            }
        }
        return null;
    }

}
